﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DLL;

namespace BLL
{
    public class ProductTypeService
    {
        private ProductTypeRepo m_Repo;

        public ProductTypeService()
        {
            m_Repo = new ProductTypeRepo();
        }

        public void AddProductType(ProductType productType)
        {
            m_Repo.AddProductType(productType);
        }

        public void UpdateProductType(ProductType productType)
        {
            m_Repo.UpdateProductType(productType);
        }

        public IList<ProductType> GetProductTypes()
        {
            return m_Repo.GetProductTypes();
        }

        public bool DeleteProductType(int productTypeId)
        {
            return m_Repo.DeleteProductType(productTypeId);
        }

    }
}
